import Mock from 'mockjs'

let List=[]
export default{
    getStatisticalData:()=>{
        for(let i=0;i<7;i++){
            List.push(
                Mock.mock({
                    苹果:Mock.Random.float(100,8000,0,0),
                    vivo:Mock.Random.float(100,8000,0,0),
                    oppo:Mock.Random.float(100,8000,0,0),
                    锤子:Mock.Random.float(100,8000,0,0),
                    小米:Mock.Random.float(100,8000,0,0),
                    华为:Mock.Random.float(100,8000,0,0),
                })
                )
        }
        return{
            code:20000,
            data:{
                videoData:[
                    {
                        name:"小米",
                        value:2999
                    },
                    {
                        name:"vivo",
                        value:1999
                    },
                    {
                        name:"oppo",
                        value:2299
                    },
                    {
                        name:"锤子",
                        value:2989
                    },
                    {
                        name:"华为",
                        value:8999
                    },
                    {
                        name:"苹果",
                        value:9999
                    },
                ],
                userData:[
                    {
                        data:"周一",
                        new:5,
                        active:200
                    },
                    {
                        data:"周二",
                        new:10,
                        active:500
                    },
                    {
                        data:"周三",
                        new:15,
                        active:600
                    },
                    {
                        data:"周四",
                        new:20,
                        active:700
                    },
                    {
                        data:"周五",
                        new:50,
                        active:900
                    },
                    {
                        data:"周六",
                        new:45,
                        active:600
                    },
                    {
                        data:"周日",
                        new:25,
                        active:150
                    },
                ],
                orderData:{
                    date:['2023-01-12','2023-01-13','2023-01-14','2023-01-15','2023-01-16','2023-01-17','2023-01-18'],
                    data:List
                },
                tableData:[
                    {
                        name:'oppo',
                        todayBuy:500,
                        monthBuy:3500,
                        totalBuy:22200
                    },
                    {
                        name:'vivo',
                        todayBuy:50,
                        monthBuy:7500,
                        totalBuy:2200
                    },
                    {
                        name:'苹果',
                        todayBuy:1400,
                        monthBuy:33500,
                        totalBuy:122200
                    },
                    {
                        name:'华为',
                        todayBuy:100,
                        monthBuy:5500,
                        totalBuy:62200
                    },
                    {
                        name:'小米',
                        todayBuy:100,
                        monthBuy:11500,
                        totalBuy:212200
                    },
                    {
                        name:'锤子',
                        todayBuy:100,
                        monthBuy:11500,
                        totalBuy:212200
                    },

                ]
            }
        }
    }
}